(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/community/select" ], {
    "26eb": function(t, e, n) {},
    "32f0": function(t, e, n) {
        var i = n("26eb");
        n.n(i).a;
    },
    "4f1a": function(t, e, i) {
        (function(t) {
            i("767a"), n(i("66fd"));
            var e = n(i("aa50"));
            function n(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = i, t(e.default);
        }).call(this, i("543d").createPage);
    },
    "64d8": function(t, e, n) {
        n.r(e);
        var i, o = n("e3ed"), c = n.n(o);
        for (i in o) "default" !== i && function(t) {
            n.d(e, t, function() {
                return o[t];
            });
        }(i);
        e.default = c.a;
    },
    aa50: function(t, e, n) {
        n.r(e);
        var i, o = n("ecca"), c = n("64d8");
        for (i in c) "default" !== i && function(t) {
            n.d(e, t, function() {
                return c[t];
            });
        }(i);
        n("32f0");
        var u = n("f0c5"), o = Object(u.a)(c.default, o.b, o.c, !1, null, null, null, !1, o.a, void 0);
        e.default = o.exports;
    },
    e3ed: function(t, e, n) {
        function c(e, t) {
            var n, i = Object.keys(e);
            return Object.getOwnPropertySymbols && (n = Object.getOwnPropertySymbols(e), t && (n = n.filter(function(t) {
                return Object.getOwnPropertyDescriptor(e, t).enumerable;
            })), i.push.apply(i, n)), i;
        }
        function i(i) {
            for (var t = 1; t < arguments.length; t++) {
                var o = null != arguments[t] ? arguments[t] : {};
                t % 2 ? c(Object(o), !0).forEach(function(t) {
                    var e, n;
                    e = i, t = o[n = t], n in e ? Object.defineProperty(e, n, {
                        value: t,
                        enumerable: !0,
                        configurable: !0,
                        writable: !0
                    }) : e[n] = t;
                }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(o)) : c(Object(o)).forEach(function(t) {
                    Object.defineProperty(i, t, Object.getOwnPropertyDescriptor(o, t));
                });
            }
            return i;
        }
        Object.defineProperty(e, "__esModule", {
            value: !0
        });
        n = {
            components: {},
            data: function() {
                return {
                    list: [],
                    key: "",
                    page: 1,
                    isLoading: 1
                };
            },
            computed: i(i({}, (e.default = void 0, n("26cb").mapState)({
                cityArea: function(t) {
                    return t.init.cityArea;
                },
                pubCity: function(t) {
                    return t.pub.pubCity;
                },
                cityList: function(t) {
                    return t.init.cityList;
                }
            })), {}, {
                city: {
                    get: function() {
                        return 0 < this.pubCity.cityId ? this.pubCity : (this.$store.commit("pubCity", this.cityArea), 
                        this.cityArea);
                    },
                    set: function(t) {}
                }
            }),
            onLoad: function() {
                this.getCommunityList();
            },
            onReady: function() {},
            methods: {
                choose: function(t) {
                    console.info(t);
                    t = {
                        id: t.id,
                        name: t.name
                    };
                    this.$store.commit("pubCommunity", t), this.$Router.back();
                },
                cancel: function() {
                    this.$Router.back();
                },
                chooseNo: function() {
                    var t = {
                        id: 0,
                        name: this.key
                    };
                    this.$store.commit("pubCommunity", t), this.$Router.back();
                },
                navToCommunityPub: function() {
                    this.$Router.push({
                        path: "/pages/community/pub",
                        query: {}
                    });
                },
                selectCity: function() {
                    this.$refs.citySelect.show();
                },
                inputChange: function(t) {
                    t = t.detail.value;
                    this.key = t, this.getCommunityList();
                },
                onReachBottom: function() {
                    this.page = this.page + 1, this.getCommunityList();
                },
                getCommunityList: function() {
                    var e = this;
                    e.$api("community.community_list", {
                        cityId: e.city.cityId,
                        key: e.key,
                        page: e.page
                    }).then(function(t) {
                        0 == t.errno && (e.isLoading = 0, t = t.data.list, 1 == e.page ? e.list = t : 0 < t.length ? e.list = e.list.concat(t) : e.page = e.page - 1);
                    });
                },
                chooseCity: function() {
                    this.page = 1, this.getCommunityList();
                }
            }
        };
        e.default = n;
    },
    ecca: function(t, e, n) {
        n.d(e, "b", function() {
            return o;
        }), n.d(e, "c", function() {
            return c;
        }), n.d(e, "a", function() {
            return i;
        });
        var i = {
            wkCitySelect: function() {
                return n.e("components/wk-city-select/index").then(n.bind(null, "4d7c"));
            },
            wkLoginModal: function() {
                return n.e("components/wk-login-modal/index").then(n.bind(null, "978a"));
            },
            wkSkeletons: function() {
                return n.e("components/wk-skeletons/index").then(n.bind(null, "5375"));
            }
        }, o = function() {
            this.$createElement;
            this._self._c;
        }, c = [];
    }
}, [ [ "4f1a", "common/runtime", "common/vendor" ] ] ]);